From 26f9d6b1c18f020a6360ea3f971295200c426b28 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 19 Nov 2015 20:33:03 +0100 Subject: [PATCH] gtkdnd: Ensure we don't fold the drag icon into the cursor on wayland This is wrong by all accounts there, as we can do no tricks there to show a "drag failed" animation, which is performed by the compositor itself on wayland. --- gtk/gtkdnd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 42bf8f1187..d495ca9179 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -786,7 +786,10 @@ gtk_drag_can_use_rgba_cursor (GdkDisplay *display, gint height) { guint max_width, max_height; - + + if (GDK_IS_WAYLAND_DISPLAY (display)) + return FALSE; + if (!gdk_display_supports_cursor_color (display)) return FALSE; -- 2.30.2